<<<<<<< HEAD
option = {
    title: {
        text: '去年',
        subtext: '12月',
        x: 'center',
        y: 'center',
        textStyle: {
            fontWeight: 'normal',
            fontSize: 22,
            color:'#aaa',
        }
    },
    tooltip: {
        trigger: 'item',
        formatter: function(params, ticket, callback) {
            var res = params.seriesName;
            res += '<br/>' + params.name + ' : ' + params.percent + '%';
            return res;
        }
    },
    legend: {
        orient: 'vertical',
        right: '0%',
        bottom: '0%',
        data: ['上报率', '处理率', '结案率', '事件发生率'],
        itemWidth: 20,
        itemHeight: 10,
        color:['#00b0ff','#7052f4','#4CC76D','#96d668','#7049f0','#3ea1ff','#00feff'],
    },
    series: [{
        name:'事件',
        type: 'pie',
        selectedMode: 'single',
        radius: ['50%', '90%'],
        label: {
            normal: {
                position: 'inner',
                textStyle: {
                    color: '#fff',
                    fontSize: 14
                }
            }
        },
        labelLine: {
            normal: {
                show: false
            }
        },
        data: [{
            value: 11,
            name: '上报率',
            itemStyle: {
                normal: {
                    color: '#00b0ff'
                }
            }
        }, {
            value: 22,
            name: '处理率',
            itemStyle: {
                normal: {
                    color: '#7052f4'
                }
            }
        }, {
            value: 33,
            name: '结案率',
            itemStyle: {
                normal: {
                    color:'#027eff'
                }
            }
        }, {
            value: 22,
            name: '事件发生率',
            itemStyle: {
                normal: {
                    color: '#00feff'
                }
            }
        }]
    }]
};


var mychart =echarts.init(document.getElementById('charts'));
=======
option = {
    title: {
        text: '去年',
        subtext: '12月',
        x: 'center',
        y: 'center',
        textStyle: {
            fontWeight: 'normal',
            fontSize: 22,
            color:'#aaa',
        }
    },
    tooltip: {
        trigger: 'item',
        formatter: function(params, ticket, callback) {
            var res = params.seriesName;
            res += '<br/>' + params.name + ' : ' + params.percent + '%';
            return res;
        }
    },
    legend: {
        orient: 'vertical',
        right: '0%',
        bottom: '0%',
        data: ['上报率', '处理率', '结案率', '事件发生率'],
        itemWidth: 20,
        itemHeight: 10,
        color:['#00b0ff','#7052f4','#4CC76D','#96d668','#7049f0','#3ea1ff','#00feff'],
    },
    series: [{
        name:'事件',
        type: 'pie',
        selectedMode: 'single',
        radius: ['50%', '90%'],
        label: {
            normal: {
                position: 'inner',
                textStyle: {
                    color: '#fff',
                    fontSize: 14
                }
            }
        },
        labelLine: {
            normal: {
                show: false
            }
        },
        data: [{
            value: 11,
            name: '上报率',
            itemStyle: {
                normal: {
                    color: '#00b0ff'
                }
            }
        }, {
            value: 22,
            name: '处理率',
            itemStyle: {
                normal: {
                    color: '#7052f4'
                }
            }
        }, {
            value: 33,
            name: '结案率',
            itemStyle: {
                normal: {
                    color:'#027eff'
                }
            }
        }, {
            value: 22,
            name: '事件发生率',
            itemStyle: {
                normal: {
                    color: '#00feff'
                }
            }
        }]
    }]
};


var mychart =echarts.init(document.getElementById('charts'));
>>>>>>> 64023929a954491135e98eced71561cf8107da2a
mychart.setOption(option);